home *** CD-ROM | disk | FTP | other *** search
Text File | 1987-01-06 | 3.4 KB | 206 lines | [TEXT/EDIT] |
- // print.h
- // © Copyright 1984 Consulair Corp, All Rights Reserved.
- // Portions © Copyright 1984 Apple Computer, Inc
- // Requires QuickDraw.h
-
- #ifndef PrintLoaded
-
- #ifndef QuickdrawLoaded
- #include "QuickDraw.h"
- #endif
-
- #define PrintLoaded
-
- typedef struct TStr80
- {
- char count;
- char contents[80];
- } TStr80;
-
- #define TPStr80 TStr80 *
-
- #define TPRect Rect *
-
- typedef struct TPrPort
- {
- GrafPort gPort;
- QDProcs gProcs;
- // more internal info
- } TPrPort;
-
- #define TPPrPort TPrPort *
-
- typedef struct TPrInfo
- {
- short iDev;
- short iVRes;
- short iHRes;
- Rect rPage;
- } TPrInfo;
-
- #define TFeed char
-
- typedef struct TPrStl
- {
- short wDev;
- short iPageV;
- short iPageH;
- char bPort;
- TFeed feed;
- } TPrStl;
-
- typedef struct TPrJob
- {
- short iFstPage;
- short iLstPage;
- short iCopies;
- char bJDocLoop;
- char fFromApp;
- ProcPtr pIdleProc;
- TPStr80 pFileName;
- short iFileVol;
- char bFileVers;
- char bJobX;
- } TPrJob;
-
- #define TScan char
-
- typedef struct TPrXinfo
- {
- short iRowBytes;
- short iBandV;
- short iBandH;
- short DevBytes;
- short iBands;
-
- char bPatScale;
- char bULThick;
-
- char bULOffset;
- char bULShadow;
-
- TScan scan;
- char bXinfoX;
- } TPrXinfo;
-
- typedef struct TPrint
- {
- short PrVersion;
- TPrInfo PrInfo;
- Rect rPaper;
- TPrStl PrStl;
- TPrInfo PrInfoPT;
- TPrXinfo PrXInfo;
- TPrJob PrJob;
- short printX[19];
- } TPrint;
-
- #define TPPrint TPrint *
- #define THPrint TPPrint *
-
- #define iPrintSize 120
-
- typedef struct TPrStatus
- {
- short iToPages;
- short iCurPage;
- short iTotCopies;
- short iCurCopy;
- short iTotBands;
- short iCurBand;
- char fPgDirty;
- char fImaging;
- THPrint hPrint;
- TPPrPort pPrPort;
- PicHandle hPic;
- } TPrStatus;
-
- /* Pascal Print Function Definitions */
-
- pascal void PrOpen()
- extern;
-
- pascal void PrClose()
- extern;
-
- pascal void PrintDefault(hPrint)
- THPrint hPrint;
- extern;
-
- pascal char PrValidate(hPrint)
- THPrint hPrint;
- extern;
-
- pascal char PrStlDialog(hPrint)
- THPrint hPrint;
- extern;
-
- pascal char PrJobDialog(hPrint)
- THPrint hPrint;
- extern;
-
- pascal void PrJobMerge(hPrintSrc,hPrintDst)
- THPrint hPrintSrc;
- THPrint hPrintDst;
- extern;
-
- pascal TPPrPort PrOpenDoc(hPrint, pPrPort, pIOBuf)
- THPrint hPrint;
- TPPrPort pPrPort;
- char *pIOBuf;
- extern;
-
- pascal void PrOpenPage(pPrPort, pPageFrame)
- TPPrPort pPrPort;
- TPRect pPageFrame;
- extern;
-
- pascal void PrClosePage(pPrPort)
- TPPrPort pPrPort;
- extern;
-
- pascal void PrCloseDoc(pPrPort)
- TPPrPort pPrPort;
- extern;
-
- pascal void PrPicFile(hPrint, pPrPort, pIOBuf, pDevBuf, Status)
- THPrint hPrint;
- TPPrPort pPrPort;
- char *pIOBuf;
- char *pDevBuf;
- TPrStatus *Status;
- extern;
-
- pascal short PrError()
- extern;
-
- pascal void PrSetError(iErr)
- short iErr;
- extern;
-
- pascal void PrDrvrOpen()
- extern;
-
- pascal void PrDrvrClose()
- extern;
-
- pascal void PrCtlCall(iWhichCtl,lParam1,lParam2,lParam3)
- short iWhichCtl;
- int lParam1;
- int lParam2;
- int lParam3;
- extern;
-
- pascal Handle PrDrvrDCE()
- extern;
-
- pascal short PrDrvrVers()
- extern;
-
- #endif
-
-
-
-
-
-